﻿
using System;
using TestMonkey.Models;

namespace TestMonkey.Templates
{
	public class Custom : TemplateProcessor
	{
		public Custom()
		{
			CreateMode = CreationMode.CreateIfMissing;
		}

		protected override bool ShouldRun(ModelRoot model)
		{
			if (model == null)
				throw new ArgumentNullException("model", "model is null.");

			return !model.Type.IsEnum && !model.Type.IsInterface && !model.Type.IsAbstract ;
		}

	}
}